#include "curvedata.h"

CurveData::CurveData(int i):d_param(i)
{

}

SignalData &CurveData::values()
{
    return SignalData::instance();
}

QPointF CurveData::sample(size_t i) const
{
    return SignalData::instance().value(d_param,i);
}

size_t CurveData::size() const
{
    return SignalData::instance().size(d_param);
}

QRectF CurveData::boundingRect() const
{
    return SignalData::instance().boundingRect(d_param);
}

QString CurveData::getNameParam(int index)
{
    return SignalData::instance().getNameParam(index);
}
